package com.zhima.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author zhima
 * @since 2023-09-05
 */
@Data
@TableName("oj_code_language")
@ApiModel(value = "OjCodeLanguage对象", description = "")
public class OjCodeLanguage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("语言id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("语言名")
    @TableField("name")
    private String name;

    @ApiModelProperty("编译的指令")
    @TableField("compile_cmd")
    private String compileCmd;

    @ApiModelProperty("运行的指令")
    @TableField("run_cmd")
    private String runCmd;
}